
uniform sampler2D tex; 

uniform vec4 foreground;
uniform vec4 background;

centroid in vec2 tcpolar;
out vec4 texel;

void main() 
{
	float alpha = texture2D(tex, tcpolar).r;
	texel = foreground * alpha + (1.0 - alpha) * background;
}